"use client";

import { Loader } from "lucide-react";
import { Button } from "./ui/button";

function SubmitButton({ title,isSubmitting}) {
  return (
    <Button type="submit" disabled={isSubmitting}>
     {isSubmitting ? <><Loader className="mr-2 h-4 w-4 animate-spin" />提交中</> : title }
    </Button>
  );
}

export default SubmitButton;
